package com.mm.controller;

import com.mm.service.HelloFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FeignController {
    @Autowired
    private HelloFeign helloFeign;

    @GetMapping(value = "/hello")
    public String helloFeign(){
        return helloFeign.hello();
    }

    @GetMapping(value = "/helloApi")
    public String helloApi(){
        return helloFeign.helloApi();
    }
}
